<?php
class PublicAction extends CommonAction {

    public function upload() {
        $this->display();
    }

    public function upfile() {
        import('ORG.Util.UploadFile');
        import('ORG.Util.Image');
        $up = new UploadFile('myfile', 100000);
        $path = $up->getLinkPath();
        $img = new Image($path);
        $img->thumb(70, 70);
        $img->output();
        alertAndClose('图片上传成功!', $path, 'add', 'face', 'view');
    }


}
?>